package com.bw.module_attendance.repo

import com.bw.lib_common.entity.BaseResponse
import com.bw.lib_common.model.BaseRepository
import com.bw.lib_http.OkHttpClientManager
import com.bw.module_attendance.api.AttendanceApiService
import com.bw.module_attendance.entity.AttendanceEntity
/**
 * 工单-智慧园区-考勤管理
 */
class AttendanceRepo :BaseRepository<AttendanceApiService>(){
    override fun createApiServer(): AttendanceApiService = OkHttpClientManager.retrofitInstance.create(AttendanceApiService::class.java)

    suspend fun getAttendance(userId:Int): BaseResponse<List<AttendanceEntity>> = apiService.getAttendance(userId)


    suspend fun addAttendance(attendanceEntity: AttendanceEntity): BaseResponse<AttendanceEntity> = apiService.addAttendance(attendanceEntity)
}